home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
SLAX 6.0.8
/
slax-6.0.8.iso
/
slax
/
tools
/
tgz2lzm
< prev
next >
Wrap
Text File
|
2008-11-21
|
637b
|
27 lines
#!/bin/bash
# convert Slackware's TGZ package into .lzm compressed file
# which can be used as a LiveCD module
#
# Author: Tomas M. <http://www.linux-live.org>
#
if [ "$1" = "" -o "$2" = "" ]; then
echo
echo "Convert Slackware's TGZ package into .lzm compressed module"
echo "usage: $0 source_filename.tgz output_file.lzm"
exit 1
fi
PATH=.:$(dirname $0):/usr/lib:$PATH
. liblinuxlive || exit 1
TMPDIR=/tmp/tgz2lzm$$
installpkg -root $TMPDIR $1
if [ $? != 0 ]; then echo "error installing package"; exit; fi
create_module $TMPDIR "$2"
if [ $? != 0 ]; then echo "error building compressed image"; exit; fi
rm -Rf $TMPDIR